<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../vue.js"></script>
</head>
<body>


<div id="app">
<!--    <div v-for="item in obj">{{item}}</div>-->
<!--    <div v-for="i in list">{{i.name}}</div>-->
    <div v-for="(value,key,index) in JsonList">{{key}}-{{value}}-{{index}}</div>
</div>
<script>
    Vue.config.productionTip = false;
    new Vue({
        el:'#app',
        data:{
            obj: '这是一个字符串',
            list: [{name:'张三'},{name:'李四'},{name:'王五'}],
            JsonList: { name: '张三', age: '18', sex: '男' },
        },

    });
</script>
</body>
</html>